<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Title</title>
</head>

<body>
<span style="float:left;">
   <FORM ACTION="/portfelo2/Control" METHOD="POST">
	<INPUT TYPE="SUBMIT" VALUE="UP" ALIGN="left">
	<INPUT TYPE="hidden" NAME="action" VALUE="up">
   </FORM>
</span>
<span style="float:left;">
   <FORM ACTION="/portfelo2/Control" METHOD="POST">
	<INPUT TYPE="SUBMIT" VALUE="LEFT" ALIGN="left">
	<INPUT TYPE="hidden" NAME="action" VALUE="left">
   </FORM>
</span>
<span style="float:left;">
   <FORM ACTION="/portfelo2/Control" METHOD="POST">
	<INPUT TYPE="SUBMIT" VALUE="RIGHT" ALIGN="left">
	<INPUT TYPE="hidden" NAME="action" VALUE="right">
   </FORM>
</span>
<span style="float:left;">
   <FORM ACTION="/portfelo2/Control" METHOD="POST">
	<INPUT TYPE="SUBMIT" VALUE="DOWN" ALIGN="left">
	<INPUT TYPE="hidden" NAME="action" VALUE="down">
   </FORM>
</span>
<%
String currentImage = (String)request.getAttribute("imageUrl");
String currentTagName = (String)request.getAttribute("tagName");
String currentTagRole = (String)request.getAttribute("tagRole");
String currentTag = currentTagRole + ": " + currentTagName;
%>
<br>
<br>
<h1>The imageUrl is <%= currentImage %>.
<br>The curentTag is <%= currentTag %>. </h1>
<br>
<%
String url[] = (String[])request.getAttribute("taggedImagesUrl");
for(int i = 0; i < url.length;i++) {%>
The urls for this tag are 
<%= url[i]%>
<br>
<% } %>
<br>
<br>
<% 
String tags[] = (String[])request.getAttribute("imageTags");
for(int i = tags.length-1; i >=0;i--) {%>
The tags for this tag are 
<%= tags[i]%>
<br>
<% } 
%>

	
	
    </form>

</body>

</html>





   